/**
 * CLASS USED FOR TESTING
 * 
 * DO NOT USE
 */

package edu.gatech.oad.publicstaticdroidmain.taskmanager.ui;

import edu.gatech.oad.publicstaticdroidmain.taskmanager.model.Task;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

/**
 * CLASS USED FOR TESTING
 * 
 * DO NOT USE
 */
public class TaskInfoActivity extends Activity {
		
		private TextView name;
		private TextView description;
		
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.task_info);
		
		Task t = null;
		Bundle b = this.getIntent().getExtras();
		if(b!=null) {
		    t = (Task) b.getSerializable("task");
		}
		
		//Text
		name = (TextView) findViewById(R.id.task_name);
		description = (TextView) findViewById(R.id.task_description);
		
		name.setText(t.getName());
		description.setText(t.getDescription());
	}

}
